package com.rsy.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rsy.common.utils.PageUtils;
import com.rsy.product.entity.BrandEntity;
import com.rsy.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author rsy
 * @email sunlightcs@gmail.com
 * @date 2022-05-01 00:16:03
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);
    //类别名字修改 数据库的名字也要修改
    void updateCategory(Long catId, String name);
    //获取分类关联的品牌
    List<BrandEntity> getBrandsByCatId(Long catId);
}

